import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class RedisDemo {
    public static void main(String[] args) {
        JedisPool jedisPool = new JedisPool("tcp://127.0.0.1:8888");
        Jedis jedis = jedisPool.getResource();
        String pool = jedis.ping();
        System.out.println(pool);
    }
}
